package io.renren.modules.generator.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import io.renren.modules.generator.entity.CustomerEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-11-27 10:21:22
 */
@Mapper
public interface CustomerDao extends BaseMapper<CustomerEntity> {

    List<CustomerEntity> queryPage(Map<String, Object>  query);

    int queryPageTotal(Map<String, Object> params);

    void updateStatusByIds(List<Integer> list);

    CustomerEntity queryById(Integer id);

    List<CustomerEntity> queryEntitiesListByAddressId(@Param("addressId") Integer addressId);
}
